package sm.upgrade.converter;

import java.util.Map;

import sm.dam.api.Converter;

public class CurrencyNameConverter implements Converter {

	@Override
	public Object convert(Object value, Map<String, Object> owner) {
		Object newValue = value;
		String currencyCode = (String) owner.get("currency_code");
		if ("BSD".equals(currencyCode)) {
			newValue = "Bahamian Dollar";
		} else if ("KMF".equals(currencyCode)) {
			newValue = "Comorian Franc";
		} else if ("CYP".equals(currencyCode)) {
			newValue = "Cypriot Pound";
		} else if ("DEM".equals(currencyCode)) {
			newValue = "Deutsche Mark";
		} else if ("DOP".equals(currencyCode)) {
			newValue = "Dominican Republic Peso";
		} else if ("ECS".equals(currencyCode)) {
			newValue = "Ecuadorian Sucre";
		} else if ("SVC".equals(currencyCode)) {
			newValue = "El Salvadorian Colon";
		} else if ("FKP".equals(currencyCode)) {
			newValue = "Falkland Pound";
		} else if ("GHC".equals(currencyCode)) {
			newValue = "Ghanian Cedi";
		} else if ("XAU".equals(currencyCode)) {
			newValue = "Gold (ounces)";
		} else if ("ISK".equals(currencyCode)) {
			newValue = "Icelandic Krona";
		} else if ("LVL".equals(currencyCode)) {
			newValue = "Latvian Lat";
		} else if ("LSL".equals(currencyCode)) {
			newValue = "Lesotho Maloti";
		} else if ("MWK".equals(currencyCode)) {
			newValue = "Malawian Kwacha";
		} else if ("MVR".equals(currencyCode)) {
			newValue = "Maldives Rufiyaa";
		} else if ("NAD".equals(currencyCode)) {
			newValue = "Namibian Dollar";
		} else if ("ANG".equals(currencyCode)) {
			newValue = "Netherlands Antilles Guilder";
		} else if ("NIO".equals(currencyCode)) {
			newValue = "Nicaraguan Cordoba";
		} else if ("NOK".equals(currencyCode)) {
			newValue = "Norwegian Krone";
		} else if ("PKR".equals(currencyCode)) {
			newValue = "Pakistani Rupee";
		} else if ("XPD".equals(currencyCode)) {
			newValue = "Palladium (ounces)";
		} else if ("PEN".equals(currencyCode)) {
			newValue = "Peruvian New Sol";
		} else if ("XPT".equals(currencyCode)) {
			newValue = "Platinum (ounces)";
		} else if ("RUB".equals(currencyCode)) {
			newValue = "Russian Ruble";
		} else if ("STD".equals(currencyCode)) {
			newValue = "Sao Tome and Principe Dobra";
		} else if ("XAG".equals(currencyCode)) {
			newValue = "Silver (ounces)";
		} else if ("KRW".equals(currencyCode)) {
			newValue = "South Korean Won";
		} else if ("LKR".equals(currencyCode)) {
			newValue = "Sri Lankan Rupee";
		} else if ("SHP".equals(currencyCode)) {
			newValue = "St. Helena Pound";
		} else if ("TWD".equals(currencyCode)) {
			newValue = "Taiwanese Dollar";
		} else if ("TOP".equals(currencyCode)) {
			newValue = "Tonga Palanga";
		} else if ("TTD".equals(currencyCode)) {
			newValue = "Trinidad and Tobago Dollar";
		} else if ("UGS".equals(currencyCode)) {
			newValue = "Ugandian Shilling";
		} else if ("AED".equals(currencyCode)) {
			newValue = "United Arab Emirates Dirham";
		}

		return newValue;
	}

}
